import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    shopBag: 0, //购物袋数量 
    isShopBag:false //是否加载购物袋数量
  },
  mutations: {
    changeShopBag(state, payload) {
      state.shopBag = payload;
    },
    changeIsShopBag(state,payload){
      state.isShopBag = payload;
    }
  },
  actions: {
  },
  modules: {
  }
})
